import StructureControllerExtension from './controllerextension'
import StructureLabExtension from './extension'
import StructureSpawnExtension from './spawnextension'
import { assignPrototype } from 'utils/utils'

/**
 * 挂载 RoomPosition 拓展
 */
export default () =>
{
    if(!StructureLab.prototype._boostCreep)
    {
        StructureLab.prototype._boostCreep =  StructureLab.prototype.boostCreep
    }
    assignPrototype(StructureLab, StructureLabExtension)

    if(!StructureSpawn.prototype._spawnCreep)
    {
        StructureSpawn.prototype._spawnCreep =  StructureSpawn.prototype.spawnCreep
    }
    // if(!StructureSpawn.prototype._renewCreep)
    // {
    //     StructureSpawn.prototype._renewCreep =  StructureSpawn.prototype.renewCreep
    // }
    assignPrototype(StructureSpawn, StructureSpawnExtension)

    assignPrototype(StructureController, StructureControllerExtension)
    
}
